﻿/*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMC.States
{
    [Obsolete("Please use DLL's")]
    class LoginState : State
    {

        public LoginState(Wbrowser webbrowser)
            : base(webbrowser)
        {
        }

        public override void DoAction()
        {
            string[] LoginAvailableAtt = new String[] { "value", "type" };
            string[] LoginAvailableEq = new String[] { "userinfo", "hidden" };
            if (FindElement("input", LoginAvailableAtt, LoginAvailableEq, true) != null)
            {
                LeaveState();
                return;
            }
            FindElement("input", "name", "username", true).SetAttribute("value", "test");
            FindElement("input", "name", "password", true).SetAttribute("value", "test");
            FindElement("input", "name", "submit", true).InvokeMember("click");
            LeaveState();
        }

        private void LeaveState()
        {
            WebBrowser.Transition(WebBrowser.NormalState, Global.Timer.Normal);
        }
    }
}*/
